class Compile {
    props = { compile: Object };

    constructor(esTable) {
        if (/<[\w\d-=() "]+?>/.test(this.props.compile)) {
            $elements.append(
                $compile(this.props.compile)(
                    esTable.getContext().$parent
                )
            );
        } else {
            $elements.text(this.props.compile);
        }
    }
}
